<template>
  <BaseList :type="RouteType.industrial" curPageName="goods_allocation_industrial" />
</template>

<script setup lang="ts" name="goods_allocation_industrial">
import { reactive, onMounted, provide } from "vue";

import { ResultEnum } from "@/enums/httpEnum";
import { UserAuthType, getUserAuth } from "@/api/modules/user";
import { RouteType } from "@/api/modules/goodsArchive/allocation";

import BaseList from "./components/BaseList.vue";

const auth = reactive<UserAuthType>({});

onMounted(() => {
  getUserAuth("goods_allocation_industrial").then(({ code, data }) => {
    if (code == ResultEnum.SUCCESS) {
      Object.assign(auth, data);
    }
  });
});

provide("auth", auth);
</script>
